package com.ruoyi.order.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;

import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 订单投诉对象 t_order_complaint
 * 
 * @author DEREK
 * @date 2023-06-28
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_order_complaint")
public class OrderComplaint
{

    /** 主键ID */
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 业务ID */
    @Excel(name = "业务ID")
    private Long businessId;

    /** 1=订单投诉 2=普通投诉 */
    @Excel(name = "1=订单投诉 2=普通投诉")
    private Integer type;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    private String content;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String extend1;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String extend2;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String extend3;

    /** 0=待处理 1=已处理 2=已驳回 */
    @Excel(name = "0=待处理 1=已处理 2=已驳回")
    private Integer status;

    /** 处理,驳回理由 */
    @Excel(name = "处理,驳回理由")
    private String reason;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operatorName;

    private Date createTime;
    private Date updateTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderNo", getOrderNo())
            .append("businessId", getBusinessId())
            .append("type", getType())
            .append("content", getContent())
            .append("extend1", getExtend1())
            .append("extend2", getExtend2())
            .append("extend3", getExtend3())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("reason", getReason())
            .append("operatorName", getOperatorName())
            .toString();
    }
}
